"""
饼图
案列：绘制饼状图显示6门编程语言的流行程度
"""
import matplotlib.pyplot as plt
import numpy as np

values=[100,10,20,30,10,45]
labels=["Python","C","C++","Java","Go","Php"]
spaces = [0,0,0,0,0,0]
colors = ['dodgerblue','orangered','limegreen','violet','gold','blue']
plt.figure("pie")
plt.title("pie")
# shadow=True,
plt.pie(values,spaces,labels,colors,"%d%%",shadow=True,startangle=90)

plt.legend()
plt.show()